import { gql } from "@apollo/client";

export const getCards_service = gql`
  query getCards($courseId: String!, $name: String) {
    getCards(courseId: $courseId, name: $name) {
      message
      data {
        id
        name
        type
        time
        validityDay
        courseId
        orgId
      }
    }
  }
`;

export const commitCard_service = gql`
  mutation commitCardInfo(
    $params: PartialCardInput!
    $crouseId: String!
    $id: String
  ) {
    commitCardInfo(params: $params, crouseId: $crouseId, id: $id) {
      message
    }
  }
`;

export const deleteCard_service = gql`
  mutation deleteCard($id: String!) {
    deleteCard(id: $id) {
      message
    }
  }
`;
